package com.first.homeqian.controller;

import com.first.common.vo.Result;
import com.first.homeqian.service.ZoneService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: first-project
 * @description:
 * @author: 闫锦超
 * @create: 2023-06-01 16:43
 **/
@RestController
@RequestMapping("/home/qian/zone")
@Api(tags = "专区接口")
public class ZoneController {
    @Autowired
    private ZoneService zoneService;
    @GetMapping("/getAllQianZone")
    @ApiOperation(value = "获取所有的专区课程信息")
    public Result getAllQianZone(){
          return  zoneService.getAllQianZone();
    }
    @GetMapping("/getAllQianMenu")
    public Result getAllQianMenu(){
        return   zoneService.getAllQianMenu();
    }
}
